package peer.adv;

import java.util.Comparator;

public class AdvUnitComparator implements Comparator{

	public int compare(Object ob1, Object ob2) {
		AdvUnit au1=(AdvUnit)ob1;
		AdvUnit au2=(AdvUnit)ob2;
		return au1.area==au2.area?0:(au1.area<au2.area)?1:-1;
	}
	

}
